import {registerRoute} from "workbox-routing";
import {
  xxvResourceInterceptorPlugin as xxvResourceInterceptorPluginHandler
} from "../plugins";

/**
 * @author lihh
 * @description 注册路由的 hooks
 */
export function useRegisterRoute() {
  const xxvResourceInterceptorPlugin = xxvResourceInterceptorPluginHandler();
  // 定义路由
  registerRoute(
    xxvResourceInterceptorPlugin.capture,
    xxvResourceInterceptorPlugin.handler
  );
}
